home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / lindex.n < prev    next >
Text File  |  1995-07-25  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.      lllliiiinnnnddddeeeexxxx((((nnnn))))                    TTTTccccllll (((( ))))                    lllliiiinnnnddddeeeexxxx((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           lindex - Retrieve an element from a list
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           lllliiiinnnnddddeeeexxxx _l_i_s_t _i_n_d_e_x
  15.      _________________________________________________________________
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           This command treats _l_i_s_t as  a  Tcl  list  and  returns  the
  20.           _i_n_d_e_x'th  element  from it (0 refers to the first element of
  21.           the list).  In extracting the element, _l_i_n_d_e_x  observes  the
  22.           same  rules  concerning braces and quotes and backslashes as
  23.           the Tcl command interpreter; however, variable  substitution
  24.           and command substitution do not occur.  If _i_n_d_e_x is negative
  25.           or greater than or equal to the number of elements in _v_a_l_u_e,
  26.           then an empty string is returned.
  27.  
  28.  
  29.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  30.           element, index, list
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/17/95)
  64.  
  65.  
  66.  
  67.